import request from '@/router/axios';
// 已绑定列表
export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-service/service/terminal/terminal/eqPage',
    method: 'get',
    params: {
      ...params,
      current,
      size
    }
  })
}

// 未绑定
export const getUNList = (params) => {
  return request({
    url: '/api/rb-service/service/terminal/terminal/eqListUnBind',
    method: 'get',
    params
  })
}


// 解绑设备
export const remove = (row) => {
  return request({
    url: '/api/rb-service/service/terminal/terminal/staffUNBindEq',
    method: 'post',
    data: row
  })
}

// 绑定设备
export const add = (row) => {
  return request({
    url: '/api/rb-service/service/terminal/terminal/staffBindEq',
    method: 'post',
    data: row
  })
}

// ---------------------ser

// 未绑定
export const eqUnBindList = (params) => {
  return request({
    url: '/api/rb-service/service/terminal/terminal/eqUnBindList',
    method: 'get',
    params
  })
}

// 绑定设备
export const buildEqPersonLarge = (row) => {
  return request({
    url: '/api/rb-service/service/terminal/terminal/buildEqPersonLarge',
    method: 'post',
    data: row
  })
}
// ---------------------end
